programming problems
Often, students are confused as to how to recieve the input data into their programs.
The trick is to look the example inputs. For example, if you have a question asking you to sum two numbers, and some sample input looking like:
15
21
Asking for output looking like:
36
Then you should write code something like:
# reads a single line from the standard input and converts it to an integer
a = int(input())
# reads a single line from the standard input and converts it to an integer
b = int(input())
# outputs the result in the requested form
print(a + b)